package com.atguigu.rabbit.producer;

import org.junit.jupiter.api.Test;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @BelongsProject: rabbitmq-parent-0528
 * @BelongsPackage: com.atguigu.rabbit.producer
 * @Author: jiangyi
 * @CreateTime: 2025-09-15  11:09
 * @Description: TODO
 * @Version: 1.0
 */
@SpringBootTest
public class simple01 {

    @Autowired
    private RabbitTemplate rabbitTemplate;

    @Test
    public void simple() {
        System.out.println("向simple_queue发送消息...");
        rabbitTemplate.convertAndSend("simple_queue","hello rabbitmq(simple_queue)...");
    }
}
